package com.service.user;

import com.core.dto.UserDTO;
import com.core.model.user.Administrator;
import org.springframework.security.core.userdetails.UserDetailsService;

import java.util.List;
import java.util.Map;

/**
 * Created with IntelliJ IDEA.
 * User: xianfei
 * Date: 15-10-23
 * Time: 下午2:52
 * To change this template use File | Settings | File Templates.
 */
public interface AdministratorService extends UserDetailsService {

    Map<String, Object> findAllAdminUser(String currentPage);

    Map<String, Object> addAdminUser(UserDTO userDTO);

    boolean delAdminUser(String adminUserGuid);

    boolean resetAdminPwd(String adminUserGuid, String newPassword);

    Object findTotalPage(Class c);

    Administrator findAdminByUsername(String username);
}
